package top.sjydzq.www.bean;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by joe on 19-7-2 上午8:25
 */
public class Notice {
    private int id;
    private String ntitle;
    private String ncontent;
    private Date ntime;

    public Notice() {}

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNtitle() {
        return ntitle;
    }

    public void setNtitle(String ntitle) {
        this.ntitle = ntitle;
    }

    public String getNcontent() {
        return ncontent;
    }

    public void setNcontent(String ncontent) {
        this.ncontent = ncontent;
    }

    public Date getNtime() {
        return ntime;
    }

    public void setNtime(Date ntime) {
        this.ntime = ntime;
    }

    public String getFormattedDate() {
        return new SimpleDateFormat("yyyy-MM-dd").format(this.ntime);
    }
}
